package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户提现业务对象 p_user_extract
 *
 * @author ruoyi
 * @date 2022-07-26
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("用户提现业务对象")
public class PUserExtractBo extends BaseEntity {

    /**
     * 
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户账号
     */
    @ApiModelProperty(value = "用户账号", required = true)
    @NotNull(message = "用户账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true)
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String realName;

    /**
     * 提现类型 0 银行卡 1 微信 2 支付宝
     */
    @ApiModelProperty(value = "提现类型 0 银行卡 1 微信 2 支付宝", required = true)
    @NotBlank(message = "提现类型 0 银行卡 1 微信 2 支付宝不能为空", groups = { AddGroup.class, EditGroup.class })
    private String extractType;

    /**
     * 银行卡
     */
    @ApiModelProperty(value = "银行卡", required = true)
    @NotBlank(message = "银行卡不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bankCode;

    /**
     * 开户地址
     */
    @ApiModelProperty(value = "开户地址", required = true)
    @NotBlank(message = "开户地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bankAddress;

    /**
     * 支付宝账号
     */
    @ApiModelProperty(value = "支付宝账号", required = true)
    @NotBlank(message = "支付宝账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String alipayCode;

    /**
     * 提现金额
     */
    @ApiModelProperty(value = "提现金额", required = true)
    @NotNull(message = "提现金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal extractPrice;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", required = true)
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mark;

    /**
     * 无效原因
     */
    @ApiModelProperty(value = "无效原因", required = true)
    @NotBlank(message = "无效原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String failMsg;

    /**
     * 0 未通过 1 审核中 2 已提现
     */
    @ApiModelProperty(value = "0 未通过 1 审核中 2 已提现", required = true)
    @NotNull(message = "0 未通过 1 审核中 2 已提现不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 微信号
     */
    @ApiModelProperty(value = "微信号", required = true)
    @NotBlank(message = "微信号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wechat;

    /**
     * 失败时间
     */
    @ApiModelProperty(value = "失败时间", required = true)
    @NotNull(message = "失败时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date failTime;

    /**
     * 银行名称
     */
    @ApiModelProperty(value = "银行名称", required = true)
    @NotBlank(message = "银行名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bankName;

    /**
     * 微信收款二维码
     */
    @ApiModelProperty(value = "微信收款二维码", required = true)
    @NotBlank(message = "微信收款二维码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String qrcodeUrl;


}
